<?php
/*
// +----------------------------------------------------------------------------------------
// | Icoterie Development Framework Intelligence Enterprise Management Priority Selective
// +----------------------------------------------------------------------------------------
// | Copyright (c) [2019] [Honor Full Epoch Educational Science Technology Hebei Co., Ltd.]
// | website  http://dev.icoterie.top http://www.ihfe.top
// +----------------------------------------------------------------------------------------
// | [Icoterie Development Framework] is licensed under the Mulan PSL v2.
// +----------------------------------------------------------------------------------------
// | You can use this software according to the terms and conditions of the Mulan PSL v2.
// +----------------------------------------------------------------------------------------
// | Licensed ( http://license.coscl.org.cn/MulanPSL2 )
// +----------------------------------------------------------------------------------------
// | THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER
// | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR
// | FIT FOR A PARTICULAR PURPOSE.
// +----------------------------------------------------------------------------------------
// | See the Mulan PSL v2 for more details.
// +----------------------------------------------------------------------------------------
// | Author: Reflux Lewse,Red Shadow Sue
// +----------------------------------------------------------------------------------------
// | 框架初始化
// +----------------------------------------------------------------------------------------
*/
// 设置字符集编码、IE文档模式
header('Content-Type:text/html; charset=utf-8');
header('X-UA-Compatible:IE=edge,chrome=1');
header('X-Powered-By:IcoterieCMS');
// 设置时区
ini_set("date.timezone",'Asia/Shanghai');

defined('IS_INDEX') ?: die('不允许直接访问框架内核启动文件！');
//系统目录分隔符
defined('DS') ?: define('DS', DIRECTORY_SEPARATOR);

//核心目录
defined('CORE_PATH') ?: define('CORE_PATH', dirname(__FILE__) . DS);
//框架目录
defined('DEV_PATH') ?: define('DEV_PATH', dirname(__DIR__) . DS);
//应用目录
defined('APP_PATH') ?: define('APP_PATH', DEV_PATH . 'app' .DS);
//配置文件目录
defined('CONFIG_PATH') ?: define('CONFIG_PATH', DEV_PATH . 'config'.DS);
//运行目录
defined('RUNTIME_PATH') ?: define('RUNTIME_PATH', DEV_PATH . 'runtime' . DS);
//缓存路径
defined('CACHE_PATH') ?: define('CACHE_PATH', RUNTIME_PATH . 'cache' . DS);
//临时文件路径
defined('TEMP_PATH') ?: define('TEMP_PATH', RUNTIME_PATH . 'temp' . DS);
//载入服务
require_once  CORE_PATH . 'basic' . DS . 'Service.php';
//载入函数
require_once  CORE_PATH . 'function' . DS . 'call.php';
//载入框架
require_once  CORE_PATH . 'basic' . DS . 'Kernel.php';
$app = new core\basic\Kernel();
$app->run();
?>